<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>div布局控制</title>
    <style>
        /*给div标签加边框*/
        div{
            border: 1px solid red;
        }

        /*左侧div图片样式*/
        .left{
            width: 20%;
            float: left;
            height: 500px;
        }

        /*主体div图片样式*/
        .center{
            width: 59%;
            float: left;
            height: 500px;
        }

        /*右侧div图片样式*/
        .right{
            width: 20%;
            float: left;
            height: 5000px;
        }

        /*底部div图片样式*/
        .footer{
            /*清除浮动效果*/
            clear: both;
            /*文本对齐方式*/
            text-align: center;
            /*背景颜色*/
            background-color: cyan;

        }



    </style>


</head>
    <body>
    <!--顶部登录注册-->
    <div>登录注册</div>

    <div>导航条</div>

    <!--左部广告-->
    <div class="left">left</div>

    <!--主体-->
    <div class="center">center</div>

    <!--右部广告-->
    <div class="right">right</div>

    <!--底部超链接div样式-->
    <div class="footer">footer</div>





    </body>
</html>